package com.gzx.plugin.tjzy.modular.blacklist.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.common.handler.CommonSm1AesTypeHandler;
import vip.xiaonuo.common.pojo.TenantEntity;

/**
 * 黑名单
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "gzx_blacklist", autoResultMap = true)
public class GzxBlackList extends TenantEntity {

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 类型1：线路，2：业务，3：停机空号
     */
    private Integer type;

    /**
     * 手机号
     */
    @TableField(typeHandler = CommonSm1AesTypeHandler.class)
    private String phone;

    /**
     * 所属月份
     */
    private String belongingMonth;
}
